<template>
	<view>
		<view class="u-p-t-40">
			<u-grid :col="col" align="left">
				<u-grid-item v-for="(item, index) in list" :key="index" @click="nextNav(item.url)">
					<text class="bepad">{{'￥'+ parseInt(item.shu) }}{{type == 1? '元' : '元/月'}}</text>
					<view class="m-c-b u-m-t-20 u-font-25">
						{{index == 0 ? (type===0?'租金':'出售') : ''}}{{index == 0 ? '' : '降价('+$u.timeFormat(item.name)+')'}}</view>
				</u-grid-item>
			</u-grid>
		</view>
	</view>
</template>

<script>
	export default {
		name: "xiangxi",
		data() {
			return {};
		},
		props: {
			title: {
				type: String,
				default: '标题'
			},
			list: {
				type: Array,
				default: () => []
			},
			col: {
				type: Number,
				default: 3
			},
			type: {
				type: Number,
				default: 0
			}
		}
	}
</script>

<style lang="scss">
	.bepad {
		font-size: 34rpx;
		font-weight: bold;
		color: #F07418;
	}
</style>
